Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODFacet


ContainsPoint

The ContainsPoint method returns a Boolean value that indicates whether the specified point is within the area of this facet.

ODBoolean ContainsPoint (in ODPoint point, 
                         in ODCanvas biasCanvas);
point
The location to test, expressed in frame coordinates.
biasCanvas
kODNULL if the geometry is in platform-normal coordinates, otherwise a reference to the canvas object to whose coordinate space the geometry is biased.
return value
kODTrue if the specified point is within the area of this facet, otherwise kODFalse.
DISCUSSION
Your part calls its embedded facet's ContainsPoint method when it needs to do hit-testing on those facets. This method tests the result against the intersection of the clip shape and the active shape.

SEE ALSO
The ODPoint type (page 885).
The ODFacet::ActiveBorderContainsPoint method (page 232).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help